
package com.banach.prema.repository.dataobject;

import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * @author ajun
 * 
 */
@TableName("bnh_C2C_Msg")
public class C2CMsgDO {
	private String id;
	private Integer msgSeq;//消息序列号，一条消息的唯一标示	
	private String from_account;//消息发送者 Identifier
	private String to_account;//消息接收者 Identifier
	private Date msgTime;//消息发送的时间戳，对应后台 Server 时间
	private Long msgRandom;//发消息请求中的 11 位随机数
	private String msgBody;//息体，具体参见
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Integer getMsgSeq() {
		return msgSeq;
	}
	public void setMsgSeq(Integer msgSeq) {
		this.msgSeq = msgSeq;
	}
	public String getFrom_account() {
		return from_account;
	}
	public void setFrom_account(String from_account) {
		this.from_account = from_account;
	}
	public String getTo_account() {
		return to_account;
	}
	public void setTo_account(String to_account) {
		this.to_account = to_account;
	}
	public Date getMsgTime() {
		return msgTime;
	}
	public void setMsgTime(Long msgTime) {
		this.msgTime = new Date(((long)msgTime)*1000);
	}
	public String getMsgBody() {
		return msgBody;
	}
	public void setMsgBody(String msgBody) {
		this.msgBody = msgBody;
	}

	public C2CMsgDO setMsgTime(Date msgTime) {
		this.msgTime = msgTime;
		return this;
	}

	public Long getMsgRandom() {
		return msgRandom;
	}

	public C2CMsgDO setMsgRandom(Long msgRandom) {
		this.msgRandom = msgRandom;
		return this;
	}
}
